<div class="row" ng-controller="editCtr">
  <div class="col-md-12">
    <table class="table">
      <tbody>
      <tr>
        <td></td>
        <td></td>
        <td></td>
        <td class="text-right"><a href="#"  ui-sref='index.move' class="label label-primary ">返回列表</a></td>
      </tr>
      </tbody>
    </table>
    <div class="col-md-10 col-md-offset-1" >
      <form class="form-horizontal">
        <div class="form-group">
          <label>标题</label>
          <input type="text"  ng-model="froms.title" class="form-control" placeholder="标题" >
        </div>
        <div class="form-group">
          <label>分类</label>
          <select class="form-control" ng-model="froms.category_id" >
            <option selected  value="0" >顶级</option>
            <option  ng-repeat="v in category" value="{{v.data.id}}"  >{{ v.tree1}}{{v.data.name}}</lable></option>
          </select>
        </div>
        <div class="form-group">
          <label >封面 </label>
          <div class="row">
            <div class="col-xs-6 col-md-3">
              <div ng-if="image.url">
                <a  class="thumbnail">
                  <img_remove  imgid="{{image.id}}"></img_remove>
                  <img ng-src="{{image.url}}" alt="...">
                  <input type="hidden" name="logo"  ng-model="froms.logo" value="{{image.id}}">
                </a>
              </div>
            </div>
          </div>
          <p></p>
          <div class='row'>
            <div class="col-md-3">
              <div class="btn btn-default" ng-change="" ngf-select ng-model="file" name="file" >&nbsp;&nbsp;图&nbsp;&nbsp;片&nbsp;&nbsp;</div>
            </div>
            <div class="col-md-4">
              <button type="button"  class="btn btn-default" ng-click="submits(1)">上传</button>
            </div>
          </div>
        </div>

        <div class="form-group">
          <label >图集</label>
          <div class="row">
            <div ng-if="images.length>0">
              <div ng-repeat="val in images" class="col-xs-6 col-md-3">
                <a  class="thumbnail">
                  <img_remove  imgid="{{val.id}}"></img_remove>
                  <img ng-src="{{val.url}}" alt="...">
                </a>
              </div>
            </div>
          </div>
          <p></p>
          <div class="row">
            <div class="col-md-3">
              <div class="btn btn-default" ngf-select ng-model="file" name="file" >&nbsp;&nbsp;图&nbsp;&nbsp;片&nbsp;&nbsp;</div>
            </div>
            <div class="col-md-4">
              <button type="button"  class="btn btn-default" ng-click="submits(2)">上传</button>
            </div>
          </div>
        </div>
        <div class="form-group">
          <label >电影</label>
          <textarea ng-model="froms.intro"  class="form-control" rows="3"></textarea>
        </div>
        <div class="form-group">
          <label >简介</label>
          <div class="ueditor" ready="ready" ng-model="froms.moveintro"></div>

        </div>
        <div class="form-group">
          <label >资源</label>
          <textarea ng-model="froms.resource" class="form-control" rows="3"></textarea>
        </div>
        <div class="form-group">
          <label >标签</label>
          <input type="text" ng-model="froms.tab"   class="form-control" placeholder="标签">
        </div>
        <div class="form-group">
          <label >是否上线</label>
          <input type="checkbox"  ng-model="froms.status"  id="blankCheckbox" value="option1" aria-label="...">
        </div>

        <div class="form-group">
          <div class=" col-sm-12 w-from-buttom">
            <button type="button"  ng-click="formsButton()" id="formsButton" class="btn btn-default">添加</button>
          </div>
        </div>
      </form>

    </div>
  </div>
</div>